<?php

    include('functions.php');
    
    if(!isset($_POST['i'])) exit('发生错误, 请返回!');
        else $idx = $_POST['i'];
    if(!isset($_POST['c'])) exit('发生错误, 请返回!');
        else $type = $_POST['c'];
    if(!isset($_POST['s'])) exit('发生错误, 请返回!');
        else $content = $_POST['s'];

    $content = urlencode(str_replace('\n', ' ', $content));
    
    $res = curl("http://www.djmaxcn.com/community/ProcComment.asp?i={$idx}&c={$type}&s={$content}");
    
//    echo json_decode($res);

    jump("view.php?i={$idx}&c={$type}");